package com.hethongviet.vending.model;

public class Account extends Model
{
	private String id = "";
	private String name = "";
	private long amount = 0;
	private int groupId = 0;

	public static final int PERMIT_USER = 1;
	public static final int PERMIT_OPERATOR = 2;
	public static final int PERMIT_ADMIN = 3;
	private int permitAccess = PERMIT_USER;

	private boolean isTerminated = false;
	private String pinCode = "";
	private boolean isActive = true;
	private long dateCreated = 0;

	private String staffId = "";
	private String username = "";
	private String password = "";
	private int positionId = 0;

	public Account()
	{
	}

	public Account(String id)
	{
		this.id = id;
	}

	public Account(final String id, final String name,
			final long amount, final int groupId,

			final int permitAccess,

			final boolean isTerminated, final String pinCode,
			final boolean isActive, final long dateCreated,

			final String staffId, final String username, final String password,
			final int positionId

	)
	{
		this.id = id;
		this.name = name;
		this.amount = amount;
		this.groupId = groupId;

		this.permitAccess = permitAccess;

		this.isTerminated = isTerminated;
		this.pinCode = pinCode;
		this.isActive = isActive;
		this.dateCreated = dateCreated;

		this.staffId = staffId;
		this.username = username;
		this.password = password;
		this.positionId = positionId;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public long getAmount()
	{
		return amount;
	}

	public void setAmount(long amount)
	{
		this.amount = amount;
	}

	public int getGroupId()
	{
		return groupId;
	}

	public void setGroupId(int groupId)
	{
		this.groupId = groupId;
	}


	public boolean isTerminated()
	{
		return isTerminated;
	}

	public void setTerminated(boolean isTerminated)
	{
		this.isTerminated = isTerminated;
	}

	public String getPinCode()
	{
		return pinCode;
	}

	public void setPinCode(String pinCode)
	{
		this.pinCode = pinCode;
	}

	public boolean isActive()
	{
		return isActive;
	}

	public void setActive(boolean isActive)
	{
		this.isActive = isActive;
	}

	public long getDateCreated()
	{
		return dateCreated;
	}

	public void setDateCreated(long dateCreated)
	{
		this.dateCreated = dateCreated;
	}

	public String getStaffId()
	{
		return staffId;
	}

	public void setStaffId(String staffId)
	{
		this.staffId = staffId;
	}

	public String getUsername()
	{
		return username;
	}

	public void setUsername(String username)
	{
		this.username = username;
	}

	public String getPassword()
	{
		return password;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}

	public int getPositionId()
	{
		return positionId;
	}

	public void setPositionId(int positionId)
	{
		this.positionId = positionId;
	}

	public int getPermitAccess()
	{
		return permitAccess;
	}

	public void setPermitAccess(int permitAccess)
	{
		this.permitAccess = permitAccess;
	}

}
